FROM alpine:3.12

ENV TZ=Asia/Shanghai

RUN set -ex \
    && sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
    && apk add --update --no-cache bash tzdata openjdk11 \
    && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
    && mkdir /mcl \
    && rm -rf /var/cache/apk/* && rm -rf /tmp/*

WORKDIR /mcl

ENTRYPOINT [ "/bin/sh" ]
